import service from '@/utils/request'

const ProgramApi = {
  addProgram: function (data) {
    return service.post('program', data)
  },
  getProgram: function (data) {
    return service.get('program', {params:data})
  },
  deleteProgram: function (data) {
    return service.put('program/delete', data)
  },
  editProgram: function (data) {
    return service.put('program', data)
  },
  listProgram: function (data) {
    return service.get('program/page', {params: data})
  },
}

export default ProgramApi